using System;
using System.Collections.Generic;
using System.Text;
namespace BE
{
	public class ZD_DonMauCT: BusinessObjectBase
	{

		#region InnerClass
		public enum ZD_DonMauCTFields
		{
			DonMauCT_ID,
			DonMau_ID,
			MaVT,
			TenVT,
			SoLuong,
			DonViTinh,
			LieuDung
		}
		#endregion

		#region Data Members

			int _donMauCT_ID;
			int? _donMau_ID;
			int? _maVT;
			string _tenVT;
			int? _soLuong;
			string _donViTinh;
			string _lieuDung;

		#endregion

		#region Properties

		public int  DonMauCT_ID
		{
			 get { return _donMauCT_ID; }
			 set
			 {
				 if (_donMauCT_ID != value)
				 {
					_donMauCT_ID = value;
				 }
			 }
		}

		public int?  DonMau_ID
		{
			 get { return _donMau_ID; }
			 set
			 {
				 if (_donMau_ID != value)
				 {
					_donMau_ID = value;
				 }
			 }
		}

		public int?  MaVT
		{
			 get { return _maVT; }
			 set
			 {
				 if (_maVT != value)
				 {
					_maVT = value;
				 }
			 }
		}

		public string  TenVT
		{
			 get { return _tenVT; }
			 set
			 {
				 if (_tenVT != value)
				 {
					_tenVT = value;
				 }
			 }
		}

		public int?  SoLuong
		{
			 get { return _soLuong; }
			 set
			 {
				 if (_soLuong != value)
				 {
					_soLuong = value;
				 }
			 }
		}

		public string  DonViTinh
		{
			 get { return _donViTinh; }
			 set
			 {
				 if (_donViTinh != value)
				 {
					_donViTinh = value;
				 }
			 }
		}

		public string  LieuDung
		{
			 get { return _lieuDung; }
			 set
			 {
				 if (_lieuDung != value)
				 {
					_lieuDung = value;
				 }
			 }
		}


		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("DonMauCT_ID", "DonMauCT_ID"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("TenVT", "TenVT",150));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("DonViTinh", "DonViTinh",10));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("LieuDung", "LieuDung",150));
		}

		#endregion

	}
}
